.class Lcom/waiqin365/lightapp/chexiao/fh;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fh;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const v4, 0x7f08013b

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/chexiao/fh;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->dismissProgressDialog()V

    iget v1, p1, Landroid/os/Message;->what:I

    sparse-switch v1, :sswitch_data_0

    goto :goto_0

    :sswitch_0
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/at;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/at;->b()Z

    move-result v2

    if-eqz v2, :cond_4

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/at;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->n(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/at;->e:Ljava/util/List;

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew;->setValueItems(Ljava/util/List;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->n(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew;

    move-result-object v0

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/at;->d:Lcom/waiqin365/lightapp/chexiao/c/a;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew;->setSelectedItem(Lcom/waiqin365/lightapp/dailyreport/c/a;)V

    goto :goto_0

    :sswitch_1
    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/waiqin365/lightapp/chexiao/b/a/bj;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/chexiao/b/a/bj;->b()Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "1"

    iget-object v3, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bj;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    const v2, 0x7f080718

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->showToast(Ljava/lang/String;)V

    invoke-static {v5}, Lcom/waiqin365/lightapp/chexiao/d/a;->a(Lcom/waiqin365/lightapp/chexiao/d/d;)V

    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/waiqin365/lightapp/chexiao/CXRecordsDetailXSActy;

    invoke-direct {v2, v0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v3, "id"

    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bj;->d:Ljava/lang/String;

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->startActivity(Landroid/content/Intent;)V

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->j(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Z

    move-result v1

    if-eqz v1, :cond_1

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v2, "type"

    sget-object v3, Lcom/fiberhome/gaea/client/a/e;->i:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v1, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const-class v3, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v3

    const-string/jumbo v4, "reinit_activity"

    invoke-virtual {v3, v4, v1, v2}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->k(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->k(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->k(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/waiqin365/lightapp/product/e/b;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->d(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->l(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->l(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->m(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    invoke-static {v0}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    invoke-static {v0}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->m(Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/chexiao/CXXSActivity;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v2, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "close_activity"

    invoke-virtual {v2, v3, v5, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    :goto_1
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->finish(Z)V

    goto/16 :goto_0

    :cond_1
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/chexiao/CXXSActivity;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v2, Lcom/waiqin365/lightapp/chexiao/CXRecordsListXSActy;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "reinit_activity"

    invoke-virtual {v2, v3, v5, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    goto :goto_1

    :cond_2
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/bj;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_3
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->showToast(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_4
    iget-object v1, v1, Lcom/waiqin365/lightapp/chexiao/b/a/at;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_5

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_5
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/chexiao/CXXSSubmitActivity;->showToast(Ljava/lang/String;)V

    goto/16 :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x17 -> :sswitch_0
        0x1004 -> :sswitch_1
    .end sparse-switch
.end method
